/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package search;

import mapapp.*;

/**
 *
 * @author Cookie
 */
public class Statie {

    double latitudine;
    double longitudine;
    String nume;
    int id;

    public Statie(Punct p,String n,int i){
        this.latitudine=p.latitude;
        this.longitudine=p.longitude;
        this.nume=n;
        this.id=i;

    }
    public Statie(){
        this.latitudine=0;
        this.longitudine=0;
        this.nume="";
        this.id=0;
    }

    public void setCoord(Punct p){
        this.latitudine=p.latitude;
        this.longitudine=p.longitude;
    }
    public Punct getCoord(){
        Punct p=new Punct(this.latitudine,this.longitudine);
        return p;
    }
    public void setNume(String n){
        this.nume=n;

    }
    public String getNume(){
       return this.nume;
    }
    public void setId(int i){
        this.id=i;
    }
    public int getId(){
        return this.id;

    }


}
